package com.ztsoft.user.common.exception;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class CustomException extends RuntimeException {

    private String msg;

    private int code;

    public CustomException(Exception e) {
        super(e);
    }

    public CustomException(String msg, Exception e) {
        super(msg, e);
    }

}